#include "imagedealer.h"
#include <QDebug>

ImageDealer::ImageDealer(QObject *parent)
    : QObject{parent}
{}

void ImageDealer::flipImage(const QImage originImage)
{
    if (!originImage.isNull()) {
        // 处理图像翻转
        QImage flippedImage = originImage.mirrored(true, false); // 水平翻转
        // 垂直翻转: image.mirrored(false, true);
        emit returnDealedImage(flippedImage);
    }
}

